package com.eshore.norm.pojo.po;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author HJ
 * @date 2024/1/9 8:58
 */
@NoArgsConstructor
@Data
public class NormMemStatsPO {

    @JsonProperty("message")
    private String message;
    @JsonProperty("content")
    private List<ContentDTO> content;
    @JsonProperty("status")
    private Integer status;
    @JsonProperty("total")
    private Integer total;
    @JsonProperty("timestamp")
    private String timestamp;

    @NoArgsConstructor
    @Data
    public static class ContentDTO {
        @JsonProperty("data_stat_at")
        private String dataStatAt;
        @JsonProperty("mem_stat")
        private MemStatDTO memStat;

        @NoArgsConstructor
        @Data
        public static class MemStatDTO {
            @JsonProperty("memPhysicalCnt")
            private Integer memPhysicalCnt;
            @JsonProperty("memAllocateCnt")
            private Integer memAllocateCnt;
            @JsonProperty("memRealUsCnt")
            private Integer memRealUsCnt;
            @JsonProperty("memRealUsePct")
            private Double memRealUsePct;
        }
    }
}
